package com.jf.identity.config;

import com.jf.identity.entity.OrgCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author FCG
 */
public class OrgCodeConfig implements Serializable {
    private static final long serialVersionUID = 2026675743861774841L;
    private String currentOrgCode;
    private String currentOrgIndentCode;
    /**
     * 数据库已有的orgCode,orgIdenCode
     */
    List<OrgCode> orgCodes = new ArrayList<>();

    public OrgCodeConfig(String currentOrgCode, String currentOrgIndentCode) {
        this.currentOrgCode = currentOrgCode;
        this.currentOrgIndentCode = currentOrgIndentCode;
    }

    public String getCurrentOrgCode() {
        return currentOrgCode;
    }

    public void setCurrentOrgCode(String currentOrgCode) {
        this.currentOrgCode = currentOrgCode;
    }

    public String getCurrentOrgIndentCode() {
        return currentOrgIndentCode;
    }

    public void setCurrentOrgIndentCode(String currentOrgIndentCode) {
        this.currentOrgIndentCode = currentOrgIndentCode;
    }

    @Override
    public String toString() {
        return "OrgCodeConfig{" +
                "currentOrgCode='" + currentOrgCode + '\'' +
                ", currentOrgIndentCode='" + currentOrgIndentCode + '\'' +
                ", orgCodes=" + orgCodes +
                '}';
    }
}
